package com.xinchuang.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName test_record_problem_table
 */
@TableName(value ="test_record_problem_table")
@Data
public class TestRecordProblemTable implements Serializable {
    /**
     * 标识ID
     */
    @TableId
    private String problemId;

    /**
     * 记录表ID
     */
    private String parentRecordId;

    /**
     * 问题提出阶段
     */
    private String phase;

    /**
     * 图片
     */
    private String images;

    /**
     * 问题点
     */
    private String issues;

    /**
     * 问题归类
     */
    private String categories;

    /**
     * 问题总数
     */
    private String issuesTotal;

    /**
     * 待整改问题数
     */
    private String issuesPending;

    /**
     * 原因
     */
    private String causes;

    /**
     * 原因归类
     */
    private String causeCategories;

    /**
     * 专家组
     */
    private String expertGroup;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更改时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TestRecordProblemTable other = (TestRecordProblemTable) that;
        return (this.getProblemId() == null ? other.getProblemId() == null : this.getProblemId().equals(other.getProblemId()))
            && (this.getParentRecordId() == null ? other.getParentRecordId() == null : this.getParentRecordId().equals(other.getParentRecordId()))
            && (this.getPhase() == null ? other.getPhase() == null : this.getPhase().equals(other.getPhase()))
            && (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages()))
            && (this.getIssues() == null ? other.getIssues() == null : this.getIssues().equals(other.getIssues()))
            && (this.getCategories() == null ? other.getCategories() == null : this.getCategories().equals(other.getCategories()))
            && (this.getIssuesTotal() == null ? other.getIssuesTotal() == null : this.getIssuesTotal().equals(other.getIssuesTotal()))
            && (this.getIssuesPending() == null ? other.getIssuesPending() == null : this.getIssuesPending().equals(other.getIssuesPending()))
            && (this.getCauses() == null ? other.getCauses() == null : this.getCauses().equals(other.getCauses()))
            && (this.getCauseCategories() == null ? other.getCauseCategories() == null : this.getCauseCategories().equals(other.getCauseCategories()))
            && (this.getExpertGroup() == null ? other.getExpertGroup() == null : this.getExpertGroup().equals(other.getExpertGroup()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProblemId() == null) ? 0 : getProblemId().hashCode());
        result = prime * result + ((getParentRecordId() == null) ? 0 : getParentRecordId().hashCode());
        result = prime * result + ((getPhase() == null) ? 0 : getPhase().hashCode());
        result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode());
        result = prime * result + ((getIssues() == null) ? 0 : getIssues().hashCode());
        result = prime * result + ((getCategories() == null) ? 0 : getCategories().hashCode());
        result = prime * result + ((getIssuesTotal() == null) ? 0 : getIssuesTotal().hashCode());
        result = prime * result + ((getIssuesPending() == null) ? 0 : getIssuesPending().hashCode());
        result = prime * result + ((getCauses() == null) ? 0 : getCauses().hashCode());
        result = prime * result + ((getCauseCategories() == null) ? 0 : getCauseCategories().hashCode());
        result = prime * result + ((getExpertGroup() == null) ? 0 : getExpertGroup().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", problemId=").append(problemId);
        sb.append(", parentRecordId=").append(parentRecordId);
        sb.append(", phase=").append(phase);
        sb.append(", images=").append(images);
        sb.append(", issues=").append(issues);
        sb.append(", categories=").append(categories);
        sb.append(", issuesTotal=").append(issuesTotal);
        sb.append(", issuesPending=").append(issuesPending);
        sb.append(", causes=").append(causes);
        sb.append(", causeCategories=").append(causeCategories);
        sb.append(", expertGroup=").append(expertGroup);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}